package com.hdax.dm.api.base;

import com.hdax.dm.entity.user.DmLinkUser;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
public interface LinkUserControllerAPI {

    /**
     * 根据用户编号查询相关联系人列表
     */
    @PostMapping(path = "/rest/user/linkUsers/{userId}")
    List<DmLinkUser> linkUsers(@PathVariable("userId")Long userId);

    @PostMapping(path = "/rest/user/linkUser/{linkId}")
    DmLinkUser linkUser(@PathVariable("linkId") Long linkId);
}
